﻿using System;
using System.ServiceModel.Channels;

namespace CoreEx.Wcf.Common
{
    /// <summary>
    /// Represents a class that is capable of creating a new <see cref="IChannel"/> instance.
    /// </summary>
    public interface IChannelProxyFactory
    {
        /// <summary>
        /// Creates a new <see cref="IChannel"/> proxy 
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        object CreateChannelProxy(Type type);
    }
}